package com.example.springbootdubboconsumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.czk.service.IUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/9/14 15:26
 */
@RestController
public class UserController {
    /**
     * duboo的注解
     */
    @Reference
    private IUserService iUserService;
    /**
     *
     * @return
     */
    @RequestMapping("/user")
    public String user(String name){
        return iUserService.sayHello(name);
    }
}
